how to find the determinant of 3 x 3 matrix using diagonals